<template>
    <div class="cardHelp">
        <div class="helpBanner"></div>
        <div class="helpImgList">
            <img src="../../assets/img/main/help-img-1.png">
            <img src="../../assets/img/main/help-img-2.png">
            <img src="../../assets/img/main/help-img-3.png">
            <img src="../../assets/img/main/help-img-4.png">
        </div>

        <div class="helpBot">
            <div class="btn" @click="goToUserCard">我要使用书券</div>
            <div class="btn active" @click="goTobuyCard">我要购买书券</div>
        </div>
    </div>
</template>

<script>
export default {
    methods: {
        goToUserCard(){
            this.$router.push('/library')
        },
        goTobuyCard(){
            this.$router.push('/buybook')
        }
    },
}
</script>

<style lang='scss' scoped>
.helpBanner{
    width: 100%;
    height: 4.2rem;
    background: url(~@/assets/img/main/helpbanner.png) no-repeat;
    background-size: 100% 100%;
}
.helpImgList{
    width: 100%;
    background: #FFF;
    padding: .4rem 0;
    border-radius: .4rem .4rem 0 0;
    margin-top: -.75rem;
    padding-bottom: 1.8rem;
    img{
        width: 100%;
        display: block;
    }
}
.helpBot{
    width: 100%;
    height: 1.6rem;
    background: #FFF;
    position: fixed;
    text-align: center;
    bottom: 0;
    left: 0;
    z-index:9999;
    box-shadow: -.1rem 0 .4rem rgba($color: #3b64a8, $alpha: .15);
    .btn{
        width: 3.1rem;
        height: .96rem;
        border-radius: .48rem;
        display: inline-block;
        background: #e5f7ff;
        margin: .32rem .2rem;
        font-size: .36rem;
        color: #02affe;
        text-align: center;
        line-height: .96rem;
        &.active{
            background: #02affe;
            color: #FFF;
        }
    }
}
</style>